package com.CusterRelSys.mapper;

import com.CusterRelSys.entity.Page;
import com.CusterRelSys.entity.SalChance;
import com.CusterRelSys.entity.SysUser;

import java.util.List;

/**
 * Created by 张俊杰 on 2017/12/1.
 */
public interface SalChanceZjjMapper {

    /**
     * 统计查询的总页数
     * @param page
     * @return
     */
    public int countPage(Page<SalChance> page);

    /**
     *分页查询
     * @param page
     * @return
     */
    public List<SalChance> selectSalChanceByPage(Page<SalChance> page);

    /**
     * 查询用户表的所有记录
     * @return
     */
    public List<SysUser> selectSysUserAll();

    /**
     * 删除
     * @param salChance
     */
    public void deleteSalChanceById(SalChance salChance);

    /**
     * 根据id获取值
     * @param integer
     * @return
     */
    public SalChance selectSalChanceById(Integer integer);

    /**
     * 添加
     * @param salChance
     */
    public boolean insertSalChance(SalChance salChance);

    /**
     * 指派销售机会
     * @param salChance
     * @return
     */
    public boolean updateSalChanceByIdDispatch(SalChance salChance);
    /**
     * 编辑销售机会
     * @param salChance
     * @return
     */
    public boolean updateSalChanceByIdEdit(SalChance salChance);

}
